//用户路由信息
const express = require('express')
const router = express.Router()
//用户接口信息
const { cartadd, cartremoveOne, cartgoods, empty, changenumber } = require('../Interface/carr')
const verifyjwt = require('../middleware/checkToken')

// 添加购物车
router.post('/add', verifyjwt, cartadd)
//删除
router.post('/removeOne', verifyjwt, cartremoveOne)
//列表
router.get('/cartgoods/:id', verifyjwt, cartgoods)
//清空
router.get('/removeAll/:id', verifyjwt, empty)
//值修改
router.post('/changenumber', verifyjwt, changenumber)
module.exports = router